#ifndef POWERSLIDER
#define POWERSLIDER

#include "GUIObject.h"
#include "EventPoller.h"
#include <string>

class Catapult;

class PowerSlider : public GUIObject, public EventHandler
{
public:
	PowerSlider();
	~PowerSlider();
	void Draw();
	void Update();
	const char* GetTypeName();
	bool Load(File* const f);
	void OnKeyboardEvent(const SDL_KeyboardEvent& key);
	void SetPointerTexPath(const std::string& texPath);
	void PointerPos();
private:
	std::string m_slidingPointerTexPath;
	Catapult* mp_catapult;
	
	float m_sliderSpeed;
	Vec2f m_pointerPos;
	bool m_pointerUp;
	float m_pointerSize;
};
#endif